package com.wy2.eclipse.tool.lib.git;

import java.io.Serializable;

/**
 * 元素改变结果
 * @author nnsword
 * @date 2018年1月13日下午4:38:05
 *
 */
public class GitElement implements Serializable {

    /**
     * @Fields serialVersionUID : TODO(用一句话描述这个变量表示什么)
     */
    private static final long serialVersionUID = 1L;
    
    private Integer status;
    private String relativePath;
    
    
    
    public Integer getStatus() {
        return status;
    }
    public void setStatus(Integer status) {
        this.status = status;
    }
    public void setStatus(GitElementStatus status) {
        this.status = status.getStatus();
    }
    
    public String getRelativePath() {
        return relativePath;
    }
    public void setRelativePath(String relativePath) {
        this.relativePath = relativePath;
    }
    
    public GitElement(GitElementStatus status, String relativePath) {
        super();
        this.status = status.getStatus();
        this.relativePath = relativePath;
    }
    @Override
    public String toString() {
        return "GitElement [status=" + GitElementStatus.Parse(status).getStatusName() + ", relativePath=" + relativePath + "]";
    }
    
    

}
